package cn.eonshine.cuba.lsms.modular.basic.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * Pipeline basic information 管线信息（b_pipline）
 * </p>
 *
 * @author Alan
 * @since 2018-10-22
 */
@TableName("b_pipline")
public class BPipline extends Model<BPipline> {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private String id;
    /**
     * Pipe code
                         管道代码
     */
    @TableField("CODE")
    private String code;
    /**
     * Pipe name
                         管道名称
     */
    @TableField("NAME")
    private String name;
    /**
     * starting place，may be customer、deposit，etc.
                         起点
     */
    @TableField("START_ID")
    private String startId;
    /**
     * client name destination
                         终点
     */
    @TableField("END_ID")
    private String endId;
    /**
     * pipline length
                         管道长度
     */
    @TableField("PIPLINE_LENGTH")
    private BigDecimal piplineLength;
    /**
     * pipline_diameter
                         管道直径
     */
    @TableField("PIPLINE_DIAMETER")
    private BigDecimal piplineDiameter;
    /**
     * Owned pipline org
                         归属机构
     */
    @TableField("ORG_ID")
    private String orgId;
    /**
     * Maximum rate
                         最大时速
     */
    @TableField("MAX_RATE")
    private BigDecimal maxRate;
    /**
     * Pipline Whether to usenable, 0-disable 1-can use 
                         管线是否可用, 0 - 禁用 1- 启用
     */
    @TableField("USEABLE")
    private String useable;
    /**
     * pipline type
                         管线类型：1-oleo ducto、2-gaseo ducto、3-turbo ducto
     */
    @TableField("PIPLINE_TYPE")
    private String piplineType;
    /**
     * creator
                         创建者
     */
    @TableField("CREATE_BY")
    private String createBy;
    /**
     * Create time
                         创建时间
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * updater
                         更新者
     */
    @TableField("UPDATE_BY")
    private String updateBy;
    /**
     * Update time
                         更新时间
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;
    /**
     * Remarks information
                         备注信息
     */
    @TableField("REMARKS")
    private String remarks;
    /**
     * Delete the tag field
                         删除标记
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    /**
     * full name 全称
     */
    @TableField("FULL_NAME")
    private String fullName;
    /**
     * loss id 损耗主键
     */
    @TableField("LOSS_ID")
    private String lossId;
    /**
     * max pressure   最大压力
     */
    @TableField("MAX_PRESSURE")
    private BigDecimal maxPressure;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStartId() {
        return startId;
    }

    public void setStartId(String startId) {
        this.startId = startId;
    }

    public String getEndId() {
        return endId;
    }

    public void setEndId(String endId) {
        this.endId = endId;
    }

    public BigDecimal getPiplineLength() {
        return piplineLength;
    }

    public void setPiplineLength(BigDecimal piplineLength) {
        this.piplineLength = piplineLength;
    }

    public BigDecimal getPiplineDiameter() {
        return piplineDiameter;
    }

    public void setPiplineDiameter(BigDecimal piplineDiameter) {
        this.piplineDiameter = piplineDiameter;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public BigDecimal getMaxRate() {
        return maxRate;
    }

    public void setMaxRate(BigDecimal maxRate) {
        this.maxRate = maxRate;
    }

    public String getUseable() {
        return useable;
    }

    public void setUseable(String useable) {
        this.useable = useable;
    }

    public String getPiplineType() {
        return piplineType;
    }

    public void setPiplineType(String piplineType) {
        this.piplineType = piplineType;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getLossId() {
        return lossId;
    }

    public void setLossId(String lossId) {
        this.lossId = lossId;
    }

    public BigDecimal getMaxPressure() {
        return maxPressure;
    }

    public void setMaxPressure(BigDecimal maxPressure) {
        this.maxPressure = maxPressure;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BPipline{" +
        ", id=" + id +
        ", code=" + code +
        ", name=" + name +
        ", startId=" + startId +
        ", endId=" + endId +
        ", piplineLength=" + piplineLength +
        ", piplineDiameter=" + piplineDiameter +
        ", orgId=" + orgId +
        ", maxRate=" + maxRate +
        ", useable=" + useable +
        ", piplineType=" + piplineType +
        ", createBy=" + createBy +
        ", createDate=" + createDate +
        ", updateBy=" + updateBy +
        ", updateDate=" + updateDate +
        ", remarks=" + remarks +
        ", delFlag=" + delFlag +
        ", fullName=" + fullName +
        ", lossId=" + lossId +
        ", maxPressure=" + maxPressure +
        "}";
    }
}
